package com.zhenmyan.secdeal.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * description:
 *
 * @author 颜真明
 * @date 2023/5/4  15:40
 */
@Controller
@RequestMapping("/test")
public class TestController {

    /**
     * 测试页面跳转
     * @param mmodel
     * @return
     */
    @RequestMapping("hello")
    public String hello(Model mmodel) {
        mmodel.addAttribute("name", "xxx");
        return "hello";
    }

}
